package reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;
import reggie.dto.DishDto;
import reggie.entity.Dish;


public interface DishService extends IService<Dish> {
     //新增菜品，同时插入菜品对应的口味数据，操作dish，dish_flavor表
     public void  saveWithFlavor(DishDto dishDto);
     //根据id查询dish,dish的category_id查询口味
     public DishDto getByIdWithFlavor(Long id);
     //更新菜品，同时更新菜品对应的口味数据，操作dish，dish_flavor表
     public void  updateWithFlavor(DishDto dishDto);
}
